#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<assert.h>
void* my_memcpy(void* des, void* src, int size)
{
	assert(des && src);
	void* ret = des;
	while (size)
	{
		*(char*)des = *(char*)src;
		(char*)des = (char*)des+1;
		(char*)src = (char*)src+1;
		size--;
	}
	return ret;
}
int main()
{
	int arr1[10] = {0};
	int arr2[5] = { 1, 2, 3, 4, 5 };
	void *p=my_memcpy(arr1, arr2, 20);
	for (int i = 0; i < 10; i++)
	{
		printf("%d ", arr1[i]);
	}
	return 0;
}